package com.gipson.amc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 岗位管理
 * </p>
 *
 * @author cjw
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("SYS_POST_GROUP")
public class PostGroup extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "ID", type = IdType.UUID)
	private String id;
	
	/**
	 * 岗位编码
	 */
	@TableField("POST_CODE")
	private String postCode;
	
	/**
	 * 岗位名称
	 */
	@TableField("POST_NAME")
	private String postName;
	
	/**
	 * 上级ID
	 */
	@TableField("PARENT_ID")
	private String parentId;
	
	/**
	 * 公司编码
	 */
	@TableField("COMPANY_CODE")
	private String companyCode;
	
	@TableField("SORT")
	private Integer sort;
	
	/**
	 * 联表查询字段
	 */
	@TableField(exist = false)
	private String companyName; //公司名称
	
	@TableField(exist = false)
	private String parentPostCode; //上级岗位编号
	
	@TableField(exist = false)
	private String parentPostName; //上级岗位名称
	
	/**
	 * 接口参数字段
	 */
	@TableField(exist = false)
	private String postNameDim; //岗位名称 模糊匹配
	
	@TableField(exist = false)
	private String postGroupId; //岗位ID
	
	@TableField(exist = false)
	private List<String> postIdList; //岗位ID列表
	
	@TableField(exist = false)
	private String[] postGroupIdNotIn; //添加用户，选择岗位时排除已选择的岗位
	
	
}
